﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using BaseLib.Localiztion;

namespace DA
{
    [MetadataType(typeof(CategoryMetadata))]
    public partial class Category
    {
        public Type Metadata { get { return typeof(CategoryMetadata); } }
    }

    public class CategoryMetadata
    {
        [LocalizedRequired]
        [LocalizedDisplayAttribute("depts_category_name")]
        public string Name { get; set; }


        [LocalizedRequired]
        [LocalizedDisplayAttribute("depts_dept_name")]
        public string DeptId { get; set; }
    }
}
